#include <stdlib.h>
#include <stdio.h>
#include <netglobal.h>
#include <netconnection.h>
#include <connector.h>

#define MAX_CONN_ARY	1000

int main()
{
	NetConnection * conn_ary[MAX_CONN_ARY];
	
	NetConnectionPool * conn_pool = new NetConnectionPool;
	for( int i = 0; i < MAX_CONN_ARY; ++i )
		conn_ary[i] = conn_pool->get_newconnection( i, 0 );
		
	for( int i = 0; i < MAX_CONN_ARY; ++i )
		conn_pool->release_connection( conn_ary[i] );
		
	delete conn_pool;
	return 0;
}
